<%-- by Paolo Ciccarese --%>
<%-- 
Parameters list
 1) item | instance of GroupCreateCommand
 2) error | errors in text format
--%>
<div id="request" class="sectioncontainer">
	<g:form method="post" >
	
	<div class="dialog" style="width: 470px">
	    <fieldset>
           <legend>Group Creation</legend>
		<table>
			<tr>
				<td valign="top" colspan="2">
					<g:if test="${msgError!=null}">
						${msgError}
					</g:if>
				</td>
			</tr>
			<g:render template="/users/groupFields" plugin="users-module" />
			<tr>
				<td valign="top" colspan="2" >
					<div class="buttons">
						<span class="button">
							<g:actionSubmit class="save" action="saveGroup" value="${message(code: 'default.button.edit.account.label', default: 'Save group')}" />
						</span>
						<span class="button">
							<g:actionSubmit class="cancel" action="listGroups" value="${message(code: 'default.button.edit.account.label', default: 'Cancel')}" />
						</span>
					</div>
				</td>
			</tr>
		</table>
		</fieldset>
	</div>
	</g:form>
</div>